<?php
namespace App\Http\Controllers\Web;
use App\Http\Controllers\WebApi\BaseController as BaseController;//引用继承都基础控制器，zwp
use Illuminate\Http\Request;

class IndexController extends BaseController{
    public function index(Request $request){
        return view("web.index.indextest");
    }
    public function signOut(){
        session(["loginUser"=>null]);
        session()->save();
        $url = url("")."/web/index";//重定向到首页，zwp
        return redirect($url);
    }
}
